<!DOCTYPE html>
<!-- saved from url=(0077)http://data.auto.sina.cn/carlibrary/dealer.php?vt=4&subid=710&cxks=0&buffer=1 -->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta http-equiv="Cache-Control" content="no-cache">
    <meta name="format-detection" content="telephone=no">
    <meta name="keywords" content="看房团报名">
    <meta name="description" content="房产在线新楼盘栏目为您提供最新{$DataHouse['HouseName']}楼盘信息。买房聊房就上绍兴在线！">
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no"
          name="viewport" id="viewport">

    <title>看房团报名_房产在线_绍兴在线网</title>

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/Home/wap_home.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/Home/newHouse/houseApply.css">
    <script src="__PUBLIC__/js/zepto.min.js"></script>
</head>

<body>

<!-- header 初始 -->
<header>
    <div id="j_artcileMain" class="articleHead" data-sudaclick="header">
        <div class="mainNav">
            <a class="gIcon sinaLogo" href="{:U('Index/index')}"></a>
            <span class="navLine"></span>
            <a class="gIcon levelOne" href="{:U('Home/index')}">房产</a>

            <if condition="$Type eq 'KFT' ">
                <a class="gIcon levelTwo" href="{:U('Home/houseApply')}">{$HouseName}</a>
                <else />
                <a class="gIcon levelTwo" href="{:U('Home/house',array('Hid'=>$HID))}">{$HouseName}</a>
            </if>


            <a href="http://news.sina.cn/?sa=t124d8889597v84&vt=4" class="gIcon navBtn">网站导航</a>
        </div>
    </div>
    <div id="j_top_tips" class="meg_tips meg_tips_wrap">
        <!--<p class="meg_tips_t">有0条新闻更新，点击查看</p>-->
    </div>
</header>

<div class="wrap">
    <!-- container -->
    <div id="container" class="brand-container">

        <div style="background-color: #ffffff">
            <div class="hd-tuan pd10">

                <div class="autobox">
                    <h1 class="center f16">{$HouseName}</h1>

                    <div class="tuan-top mt15">
                        <p><img src="__PUBLIC__/img/Home/Apply/tuan-01.gif" width="18" alt="">楼盘动态  <span class="ff60">抢先掌握</span></p>
                        <p><img src="__PUBLIC__/img/Home/Apply/tuan-02.gif" width="18" alt="">独享会员  <span class="ff60">团购优惠</span></p>
                        <p><img src="__PUBLIC__/img/Home/Apply/tuan-02.gif" width="18" alt="">看房活动  <span class="ff60">专车直达</span></p>
                    </div>

                    <div class="wapForm mt10">
                        <dl>
                            <dt>姓<span style="margin:0 1em;"></span>名：</dt>
                            <dd>
                                <input type="text" name="buyername" id="buyername" placeholder="请输入姓名" class="ipt-text">
                            </dd>
                        </dl>
                        <dl>
                            <dt>购房预算：</dt>
                            <dd>
                                <input type="text" name="yusuan" id="yusuan" placeholder="单位是万元" class="ipt-text">
                                <!--<p class="error">手机号输入错误，请重新输入</p>-->
                            </dd>
                        </dl>
                        <dl>
                            <dt>手<span style="margin-right:0.5em;"></span>机<span style="margin-right:0.5em;"></span>号：</dt>
                            <dd>
                                <input type="tel" name="tel" id="tel" placeholder="请输入手机号" class="ipt-text">
                                <!--<p class="error">手机号输入错误，请重新输入</p>-->
                            </dd>
                        </dl>
                        <dl>
                            <dt>意向楼盘：</dt>
                            <dd>
                                <input type="text" name="loupan" id="loupan"  class="ipt-text" placeholder="请输入意向楼盘"
                                    <if condition="$Type eq 'TFT' ">
                                        disabled value="{$HouseName}"
                                    </if>
                                >
                                <input type="hidden" name="loupan_id" id="loupan_id" value="{$HID}" class="ipt-text" readonly>
                                <!--<p class="error">手机号输入错误，请重新输入</p>-->
                            </dd>
                        </dl>
                        <!--<dl id="validatecode" style="display: block;">-->
                            <!--<dt>验<span style="margin-right:0.5em;"></span>证<span style="margin:0 0.3em;"></span>码：</dt>-->
                            <!--<dd>-->
                                <!--<input type="text" name="code" id="code" placeholder="请输入验证码" class="ipt-text" style="width:108px;">-->
                                <!--<input id="sendCode" name="sendCode" type="button" value="获取验证码" class="formbtn01" onclick="sendCode();">-->
                            <!--</dd>-->
                        <!--</dl>-->
                        <input id="enroll" type="button" value="立即报名" class="formbtn02 mt20">
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>
        <!-- /container -->
        <!-- footer -->
        <include file="./APP/Tpl/Home/homefoot.html"/>
        <!-- /footer -->

        <script type="text/javascript">
            (function ($) {

                var Type = "{$Type}";

                $('#enroll').on('click',function(){
                    var buyername = $('#buyername').val();
                    var yusuan = $('#yusuan').val();
                    var tel = $('#tel').val();
                    var loupan = $('#loupan').val();
                    var loupan_id = $('#loupan_id').val();

                    if(buyername == ""){
                        alert("姓名不能为空")
                    }else if(yusuan == "" ){
                        alert("预算不能为空")
                    }else if(tel == "" ){
                        alert("电话不能为空")
                    }else if(loupan == "" ){
                        alert("楼盘不能为空")
                    }

                    $.ajax({
                        type: 'Post',
                        url: '/index.php/?m=Home&a=SomeApply',
                        data: { buyername: buyername,yusuan:yusuan,tel:tel,loupan:loupan ,loupan_id:loupan_id,Type:Type},
                        dataType: 'json',
                        timeout: 5000,
                        success: function(data){
                            // Supposing this JSON payload was received:
                            //   {"project": {"id": 42, "html": "<div>..." }}
                            // append the HTML to context object.
                            if(data.status == 1){
                                alert(data.info);
                                location.reload();
                            }else{
                                alert(data.info);
                            }
                        },
                        error: function(xhr, type){
                            alert('无法连接到服务器');
                        }
                    });
                });



            })(Zepto);

        </script>

</body>
</div></html>